import { defineStore } from 'pinia'

export const useVehicleTrackStore = defineStore('vehicleTrack', {
  state: () => ({
    params: null
  }),
  getters: {
    params: state => {
      // 返回后自动清空查询项
      const params = state.params
      state.params = null
      return params
    }
  }
})
